<%@ Page Language="VB" Inherits="System.Web.Mvc.ViewPage(Of BookmarkViewModel)" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>BookmarkPopUp</title>
    <link href="../../Content/Themes/fonts.css" rel="stylesheet" type="text/css" />
    <link class="theme" href="../../Content/Themes/Fresh/sitepopup.css" rel="stylesheet" type="text/css" />
    <script src='<%=ResolveUrl("~/Scripts/jquery-1.3.2.min.js" ) %>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/jquery.cookie.js")%>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/jquery.autocomplete.js")%>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/bookmark.js")%>' type="text/javascript"></script>
    <script type="text/javascript">
      var rootUrl = "<%= Model.RootUrl %>";
      var themes =['../../Content/Themes/Fresh/sitepopup.css','../../Content/Themes/Doomed/sitepopup.css'];
      var labellist = [<%=Model.UserLabelList%>];
      var closePopup = <%=Model.ClosePopup.ToString().ToLower%>;
      if($.cookie("css")) {$("link.theme").attr("href",themes[$.cookie("css")]);}
     $(document).ready(function() {
          bookmarks.labelautocomplete();
      if (closePopup)
       {
            window.close();
       }
     })
    </script>
</head>
<body>
 <div id="page-wrap">
        <div id="header">
            <div id="header-top">
            <ul id="title">
             <li><a id="branding" target="_blank" href="/">Bookmarks</a> </li>
            </ul>
            <ul>
           		<li id="logininfo">	
					 <%=Html.ActionLink("Show all", "Index", "Bookmark", Nothing, New With {.target = "_blank"})%>
					<span class="link-separator">|</span> 
					 <%=Html.ActionLink(Html.Encode(Page.User.Identity.Name), "UserAccount", "Bookmark", Nothing, New With {.target = "_blank"})%>
                    <span class="link-separator">|</span> 
                    <%=Html.ActionLink("logout", "Logout", "Account")%>
                    </li>
				</ul>
            </div>
        </div>
        <div class="clear"></div>
        <h2><%=Model.Title%></h2>
        <div id="content">
        <% Html.RenderPartial("BookmarkForm")%>
    </div>
        </div>
    
    <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    <script type="text/javascript">
        try {
            var pageTracker = _gat._getTracker("UA-10046670-2");
            pageTracker._trackPageview();
        } catch (err) { }</script>
</body>
</html>

